package com.yuer.api.main;

import com.yuer.service.HelloService;

import java.util.ServiceLoader;

public class MainTest {
    public static void main(String[] args) {
        ServiceLoader<HelloService> serviceLoader = ServiceLoader.load(HelloService.class);
        serviceLoader.forEach(helloService -> helloService.say("jijiji"));
    }
}
